package cn.schoolwow.quickflow.domain.flowConfig;

import cn.schoolwow.quickflow.domain.FlowContextDataKeySet;
import com.alibaba.fastjson.JSONObject;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class FlowConfigDataContext {
    /**
     * 线程绑定上下文数据
     */
    public ThreadLocal<Map<String,Object>> threadLocalDataMap = new ThreadLocal<>();

    /**
     * 全局上下文数据
     */
    public Map<String, Object> dataMap = new ConcurrentHashMap<>();

    /**
     * 全局流程配置数据,流程名称-配置数据
     */
    public Map<String, JSONObject> flowConfigDataMap = new ConcurrentHashMap<>();

    /**
     * 数据key列表
     * */
    public FlowContextDataKeySet flowContextDataKeySet = new FlowContextDataKeySet();
}
